const Request = require('../../request');


// 获取积分，姓名，班级
export function getIntegral(){
    return Request({
        url: 'api/user/integral',
        method: 'GET'
    })
}

// 获取我报名的活动
export function getMyRegister(userNumber){
    return Request({
        url: 'api/log/MyRegister/' + userNumber,
        method: 'GET'
    })
}

// 获取我参加的活动
export function getMySign(userNumber){
    return Request({
        url: 'api/log/MySign/' + userNumber,
        method: 'GET'
    })
}

// 修改密码
export function resetPassword(param){
    return Request({
        url: 'api/user/change',
        data: param,
        method: 'POST'
    })
}


// 获取我发布的活动
export function getActivityList(param){
    return Request({
        url: 'api/activity/search',
        method: 'POST',
        data: param
    })
}